package com.turkcell.dv.rest.dto;

import com.fasterxml.jackson.annotation.JsonProperty;
import com.turkcell.dv.model.PrivilegeDOM;

public class PrivilegeDTO {

	private long id;
	private String name;
	
	@JsonProperty
	public long getId() {
		return id;
	}
	public void setId(long id) {
		this.id = id;
	}
	
	@JsonProperty
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public void transformDOM(PrivilegeDOM privilege) {
		this.id = privilege.getId();
		this.name = privilege.getName();
	}
}
